package com.gjh.proxy.statics;

/**
 * @author guangjh
 * @version 1.0
 * @date 2020/7/31 11:36
 */
public class HelloProxy implements HelloInterface {
    /**
     * 代理实际对象
     */
    private HelloInterface helloInterface = new Hello();
    @Override
    public void sayHello() {
        System.out.println("Before invoke sayHello.");
        helloInterface.sayHello();
        System.out.println("After invoke sayHello.");
    }
}
